From: Timm Bäder Date: Fri, 6 Oct 2017 15:14:31 +0000 (+0200) Subject: filechooserbutton: Don't leak priv->model X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~428^2^2~187 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d292ebc7bd6c96fffdaf6d3579b6048c7d9f5479;p=gtk4.git filechooserbutton: Don't leak priv->model --- diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 48d13cbf60..e868e0442d 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -1059,6 +1059,8 @@ gtk_file_chooser_button_finalize (GObject *object) if (priv->current_folder_while_inactive) g_object_unref (priv->current_folder_while_inactive); + g_object_unref (priv->model); + gtk_widget_unparent (priv->button); gtk_widget_unparent (priv->combo_box);